package com.sagacity.framework.api.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "排序实体")
public class OrderBy {

    /**
     * 排序字段名称，可传入表字段，也可传入驼峰，会转换为下划线、
     *
     */
    @ApiModelProperty("排序字段名称")
    private String fieldName;

    @ApiModelProperty("是否升序排序（true-升序 false-降序）")
    private boolean asc = true;
}
